import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-head',
  templateUrl: './head.component.html',
  styleUrls: ['./head.component.less']
})
export class HeadComponent implements OnInit {
  isChangeColor = new Array(5);

  constructor() { }

  ngOnInit(): void {
  }
  changeColor(index: number) {
    for (let i = 0; i < this.isChangeColor.length; i++) {
      this.isChangeColor[i] = false;
    }
    this.isChangeColor[index] = true;
  }
}
